home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / createuuid.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  711 b   |  30 lines

  1. <HTML>
  2. <HEAD>
  3.     <title>CreateUUID Example</title>
  4. </HEAD>
  5.  
  6. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  7. <BODY  bgcolor="#FFFFD5">
  8. <H3>CreateUUID Example</H3>
  9.  
  10. <!--- This example shows the use of CreateUUID --->
  11. <P>
  12. This example uses CreateUUID to generate a UUID when
  13. you submit the form. You can submit the form as many times as you wish.
  14. </P>
  15.  
  16. <!--- This code checks to see if the form was submitted, then creates a 
  17.     UUID if it was. --->
  18.  
  19. <CFIF IsDefined("Form.CreateUUID") Is True>
  20.     <HR>
  21.     <P>Your new UUID is: <CFOUTPUT>#CreateUUID()#</CFOUTPUT></P>
  22. </CFIF>
  23.  
  24. <CFFORM action="createuuid.cfm" METHOD="post">
  25.  
  26. <P><INPUT TYPE="Submit" NAME="CreateUUID"> </P>
  27. </CFFORM>
  28.  
  29. </BODY>
  30. </HTML>